package com.woniuxy.ticketmovie.entity;/*
@author houguai
@create 2021-02-24 16:03
*/

import lombok.Data;

@Data
public class ResponceResult<T> {

    private int code;
    private String msg;
    private T data;

    public ResponceResult(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResponceResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static final ResponceResult<Void> SUCCESS=new ResponceResult<>(200,"ok");

    public ResponceResult() {
    }
}
